import request from '@/utils/request'
// 获取角色列表
export const reqGetRoleList = (params) => request.get('/sys/role', { params })
// export const reqGetRoleList = params => request({
//   url: '/sys/role',
//   params
// })
export const reqAddRole = (obj) => request.post('/sys/role', obj)

// 编辑修改角色
export const recommendeRole = (data) => request.put(`/sys/role/${data.id}`, data)

// 删除
export const reqdeleteRole = (id) => request.delete(`/sys/role/${id}`)
